Visual Basic (Declaration) | |
---|---|
Function GoToPageAsync( _ ByVal pageIndex As Integer, _ Optional ByVal onSuccess As Action(Of Page(Of T)), _ Optional ByVal onFail As Action(Of Exception) _ ) As PageOperationResult(Of T) |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As IPager(Of T) Dim pageIndex As Integer Dim onSuccess As Action(Of Page(Of T)) Dim onFail As Action(Of Exception) Dim value As PageOperationResult(Of T) value = instance.GoToPageAsync(pageIndex, onSuccess, onFail) |
C# | |
---|---|
PageOperationResult<T> GoToPageAsync( int pageIndex, Action<Page<T>> onSuccess, Action<Exception> onFail ) |
C++/CLI | |
---|---|
PageOperationResult<T^>^ GoToPageAsync( int pageIndex, Action<Page<T^>^>^ onSuccess, Action<Exception^>^ onFail ) |
Parameters
- pageIndex
- The zero-based index of the requested page.
- onSuccess
- An optional callback to be called when the page was successfully retrieved.
- onFail
- An optional callback to be called when the page retrieval failed.
Return Value
Asynchronous operation result.Exception | Description |
---|---|
System.InvalidOperationException | A page change is in progress. |
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family